<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles/default.css" >
  <script type="text/javascript" src="scripts/common.js"></script>
</head>

<body>
<div class="main" style="width:100%;">
	<form name="MainDeclClearSearch" action="MainDeclClearSearch.do" method="post">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
			  <caption>
				  非贸易类报检单核销
			  </caption>
			    <tr>
			      <td align="center">
			        <table border="0" style="width:70%;">
			          <tr>
			            <td width="15%"></td>
			            <td width="29%"></td>
			            <td width="20%"></td>
			            <td width="35%"></td>
			          </tr>
			          <tr height="25">
			            <td align="right">报检号</td>
			            <td><input type="text" name="declNo" value="${map.cdecl.declNo}"></td>
			            <td align="right">备案号</td>
			            <td><mytag:comSearch code="${map.cdecl.backupCode}" name="backupCode" type="backupCode"/></td>
			          </tr>
			          <tr height="25">
			            <td align="right">核销状态</td>
			            <td>
			            	<mytag:select type="auditClearStatus" selectedCode="${map.cdecl.status}" name="status"/>
			            </td>
			            <td align="right">报检单位</td>
			            <td><input type="text" name="entName" value="${map.cdecl.entName}"></td>
			          </tr>
			          <tr class="button">
			            <td colspan="4">
			            	<input type="submit" value=" 查 询 " />&nbsp;
			              	<input type="button" value=" 清空 " onclick="clearInput();" />
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  
			  <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="true"/>
			      </td>
			  </tr>
			  <tbody>
			    <tr>
			      <td align="center">
			        <table class="list">
			          <tr class="title">
			            <td width="5%">序号</td>
			            <td>报检号</td>
			            <td>备案号</td>
			            <td width="25%">报检单位</td>
			            <td>报检日期</td>
			            <td>核销状态</td>
			            <td width="7%">操作</td>
			          </tr>
					<c:forEach items="${map.page.items}" varStatus="stat" var="decl">
			          <tr  <c:if test='${decl.map["overrun"]}'>class='notice'</c:if> >
			            <td>${stat.count+map.page.seq}</td>
			            <td>${decl.declNo}</td>
			            <td><mytag:c2s key="${decl.backupCode}" type="backupCode"/></td>
			            <td>${decl.entName}</td>
			            <td><fmt:formatDate value="${decl.declDate}" pattern="yyyy-MM-dd"/></td>
			            <td>
			            	<c:choose>
			            		<c:when test="${decl.cellation==2}">完成核销</c:when>
			            		<c:when test="${decl.cellation==1&&decl.entClearApply==0}">核销中</c:when>
			            		<c:when test="${decl.cellation==1&&decl.entClearApply>=1}">新核销申请</c:when>
			            	</c:choose>
			            </td>
			            <td>
				            <a class="deco" href="AuditClearList.html?id=${decl.id}">审核</a>
			            </td>         
			          </tr>
					</c:forEach>
			        </table>
			      </td>
			    </tr>
			  </tbody>
			  <tr>
			  	<td  height="30" align="left">
			  		<span style="width:10px;"></span>
			  		<span class="notice">此颜色标出报检日期超过6个月的报检单，该批物资已经超出暂时入境期限</span>
			  	</td>
			  </tr>
			    <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="false"/>
			      </td>
			    </tr>
			</table>
	</form>
</div>
</body>
</html>
